const SAhome = resolve => {
    require.ensure(['@/Pages/schoolAuthority/SAhome.vue'], () => {
        resolve(require('@/Pages/schoolAuthority/SAhome.vue'))
    })
}
const SAbyStatusList = resolve => {
    require.ensure(['@/Pages/schoolAuthority/SAbyStatusList.vue'], () => {
        resolve(require('@/Pages/schoolAuthority/SAbyStatusList.vue'))
    })
}
const SAbyEventIdList = resolve => {
    require.ensure(['@/Pages/schoolAuthority/SAbyEventIdList.vue'], () => {
        resolve(require('@/Pages/schoolAuthority/SAbyEventIdList.vue'))
    })
}

let routes = [
    {
        path: '/SAhome',
        name: 'SAhome',
        component: SAhome,
        beforeEnter: (to, from, next) => {
            console.log(from)
            if (from.name === 'SAbyEventIdList') {
                to.params.hf = 'SAbyEventIdList'
            }
            next()
        }
    },
    {
        path: '/SAbyStatusList',
        name: 'SAbyStatusList',
        component: SAbyStatusList
    },
    {
        path: '/SAbyEventIdList',
        name: 'SAbyEventIdList',
        component: SAbyEventIdList
    }
]

export default routes
